package com.vtb.entity;

public class Config {
	public static String RR_API_URL;
	public static String RR_OAUTH_URL;
	public static String RR_APP_KEY;
	public static String RR_APP_SECRET;
	public static String RR_TOKEN_URL;
	public static String RR_REDIRECT_URL;
	public static String[] MAIL_RECEIVERS;
	public static String MAIL_SERVER_HOST;
	public static String MAIL_USER_NAME;
	public static String MAIL_PASSWORD;
	public static String MAIL_FROM;
	public static String[] QQ_FROM;
	public static String[] RR_FROM;
	
	public static void setRrConfig(String api_url, String oauth_url,String token_url,
			String app_key, String app_secret, String redirect_url) {
		RR_API_URL = api_url;
		RR_OAUTH_URL = oauth_url;
		RR_TOKEN_URL = token_url;
		RR_APP_KEY = app_key;
		RR_APP_SECRET = app_secret;
		RR_REDIRECT_URL = redirect_url;
	}
	
	public static String QQ_API_URL;
	public static String QQ_OAUTH_URL;
	public static String QQ_TOKEN_URL;
	public static String QQ_APP_KEY;
	public static String QQ_APP_SECRET;
	public static String QQ_REDIRECT_URL;

	public static void setQqConfig(String api_url, String oauth_url,String token_url,
			String app_key, String app_secret, String redirect_url) {
		QQ_API_URL = api_url;
		QQ_OAUTH_URL = oauth_url;
		QQ_TOKEN_URL = token_url;
		QQ_APP_KEY = app_key;
		QQ_APP_SECRET = app_secret;
		QQ_REDIRECT_URL = redirect_url;
	}
	
	public static void setMAIL_FROM(String mail_from) {
		MAIL_FROM = mail_from;
	}

	public static void setMAIL_SERVER_HOST(String mail_server_host) {
		MAIL_SERVER_HOST = mail_server_host;
	}

	public static void setMAIL_USER_NAME(String mail_user_name) {
		MAIL_USER_NAME = mail_user_name;
	}

	public static void setMAIL_PASSWORD(String mail_password) {
		MAIL_PASSWORD = mail_password;
	}

	public static void setMAIL_RECEIVERS(String[] mail_receivers) {
		MAIL_RECEIVERS = mail_receivers;
	}

	public static String[] getQQ_FROM() {
		return QQ_FROM;
	}

	public static void setQQ_FROM(String[] qq_from) {
		QQ_FROM = qq_from;
	}

	public static String[] getRR_FROM() {
		return RR_FROM;
	}

	public static void setRR_FROM(String[] rr_from) {
		RR_FROM = rr_from;
	}


	
}
